import uploadApi from '@/apis/system/upload'

export const uploadRequest = async (file, type, method) => {
   
    const dataForm = new FormData()
    dataForm.append(type, file)
    dataForm.append('isChunk', false)
    const response = await uploadApi[method](dataForm)
    return response.data
  }